package org.example.exp2.common;

import java.util.HashMap;
import java.util.Map;

public class LinkableData<T> {

    private Map<String, String> _links;
    private T data;

    public LinkableData(T data) {
        this._links = new HashMap<>();
        this.data = data;
    }

    public void addLink(String rel, String href) {
        _links.put(rel, href);
    }

    public Map<String, String> getLinks() {
        return _links;
    }

    public T getData() {
        return data;
    }
}